<template>
  <div class="goods">
    <goods-item v-for="(item, i) in goodsList"
                :key="i"
                :goodsItem="item" />
  </div>
</template>

<script>
import GoodsItem from './GoodsItem.vue';
export default {
  name: 'Goods',
  components: {
    GoodsItem
  },
  props: {
    goodsList: {
      type: Array,
      default () {
        return [];
      }
    }
  }
}
</script>

<style lang="less" scoped>
.goods {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
</style>